<?php	$p=permissionController::singleton(); ?>

<div id="page">
 <form id="aggiornaseduta" name="aggiornaseduta" method="post" action="<?php echo BASE_PATH;?>Seduta/Update_aggiornaLaureato/"> 
  <input type="submit" name="Submit" value="Agg.laureati"  />
</form>
<div id="content">
 
 <br>
	<table>

			<th>Orario</th>
			<th>Aula</th>
			<th>Data</th>
			<th>Visualizza</th>
			<?php 
			$uri['controller']="Seduta";
			$uri['method']="Delete_Seduta";
			if($p->permission($uri)){ ?>
			<th>Cancella</th>			
			<?php }?>
			
		<?php

		foreach ($vars as $result){
			echo "<tr>
					<td >"
					.$result[Orario]."
					</td>
					<td >"
					.$result[Aula]."
					</td>
					<td >"
					.$result[Data]."
					</td>
					<td>
						<a href='".BASE_PATH. "Seduta/View_OpenViewElencoCandidati/?id=".$result[IdSeduta]."'>
							<img src='".BASE_PATH."application/view/image/modifica.jpg' border='0'>
						</a></td>";
					$uri['controller']="Seduta";
					$uri['method']="Delete_Seduta";
				if($p->permission($uri)){ 
					echo" <td>
						<a  href='".BASE_PATH. "Seduta/Delete_Seduta/?id=".$result[IdSeduta]."'>
							<img src='".BASE_PATH."application/view/image/esci.png' border='0'>
						</a></td>";
				}
				echo "</tr>";
		}

	?>
</table>
<br>

</div>
</div>
